package com.yc.c112s3plyblog.controller;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yc.c112s3plyblog.entity.Category;
import com.yc.c112s3plyblog.service.ICategoryService;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author ly
 * @since 2022-10-12
 */
@RestController
@RequestMapping("/c112s3plyblog/category")
public class CategoryController {

    @Resource
    private ICategoryService categoryService;

    @RequestMapping("queryAll")
    public List<Category> queryAll(){
        return categoryService.list();
    }

}

